package cn.com.qtgl.apis.iam.model.input;

import cn.com.qtgl.apis.builtin.model.vo.Post;
import cn.melonlib.cores.commons.model.entity.ApiEntity;
import cn.melonlib.cores.commons.model.entity.StringIdEntity;
import cn.melonlib.cores.model.anno.ModelComment;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.BeanUtils;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
@ModelComment("岗位信息")
public class PostInput extends StringIdEntity implements ApiEntity {
    public PostInput() {
    }
    public PostInput(Post post){
        BeanUtils.copyProperties(post,this);
    }

    @ModelComment("名称")
    private String name;

    @ModelComment("公告")
    private String code;

    @ModelComment("标签")
    private String tags;

    @ModelComment("是否正式岗位")
    private Boolean formal;

    @ModelComment("描述")
    private String description;

    @ModelComment("领导岗位")
    private String parentCode;

    @ModelComment("独立岗位")
    private Boolean orphan;

    @ModelComment("是否启用")
    private Boolean active;

    @ModelComment("排序")
    private Integer index;

    @ModelComment("来源")
    private String source;

    @ModelComment("岗位类型")
    private String postType;

    @ModelComment("是否开启监控")
    private Boolean monitor;


    @ModelComment("单位类型")
    private String deptTypeCode;

    @ModelComment("过期时间")
    private String delayTime;

    @ModelComment("应用标识")
    private String clientId;

    @ModelComment("扩展信息")
    private List<DynamicValueInput> attrsValues;


}
